﻿using System.Collections.Generic;
using Framework;
using RecipeModule;

namespace OrderModule
{
    public class OrderManager : Singleton<OrderManager>
    {
        private int orderGenId = 1;
        
        private List<Order> _listOrder = new List<Order>();

        public void AddOrder(Recipe recipe)
        {
            Order order = new Order(orderGenId++);
            order.AddFromRecipe(recipe);
            _listOrder.Add(order);
        }

        public List<Order> GetListOrder()
        {
            return _listOrder;
        }
    }
}